.class Lcom/estrongs/android/pop/view/utils/a$a;
.super Ljava/lang/Object;
.source "AppOpenfileDbHelper.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/view/utils/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Ljava/lang/String;

.field final synthetic d:I

.field final synthetic e:Lcom/estrongs/android/pop/view/utils/a;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/view/utils/a;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/view/utils/a$a;->e:Lcom/estrongs/android/pop/view/utils/a;

    iput-object p2, p0, Lcom/estrongs/android/pop/view/utils/a$a;->a:Ljava/lang/String;

    iput-object p3, p0, Lcom/estrongs/android/pop/view/utils/a$a;->b:Ljava/lang/String;

    iput-object p4, p0, Lcom/estrongs/android/pop/view/utils/a$a;->c:Ljava/lang/String;

    iput p5, p0, Lcom/estrongs/android/pop/view/utils/a$a;->d:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/a$a;->e:Lcom/estrongs/android/pop/view/utils/a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/utils/a;->b()V

    .line 2
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 3
    new-instance v2, Landroid/content/ContentValues;

    invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

    .line 4
    iget-object v3, p0, Lcom/estrongs/android/pop/view/utils/a$a;->a:Ljava/lang/String;

    const-string v4, "pkgName"

    invoke-virtual {v2, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    iget-object v3, p0, Lcom/estrongs/android/pop/view/utils/a$a;->b:Ljava/lang/String;

    const-string v4, "activityName"

    invoke-virtual {v2, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 6
    iget-object v3, p0, Lcom/estrongs/android/pop/view/utils/a$a;->c:Ljava/lang/String;

    const-string v4, "extension"

    invoke-virtual {v2, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 7
    iget v3, p0, Lcom/estrongs/android/pop/view/utils/a$a;->d:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "count"

    invoke-virtual {v2, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 8
    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    const-string v1, "lastTime"

    invoke-virtual {v2, v1, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/a$a;->e:Lcom/estrongs/android/pop/view/utils/a;

    invoke-static {v0}, Lcom/estrongs/android/pop/view/utils/a;->a(Lcom/estrongs/android/pop/view/utils/a;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    const/4 v1, 0x0

    const-string v3, "openRecCount"

    invoke-virtual {v0, v3, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->replace(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    .line 10
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "activityName="

    .line 11
    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p0, Lcom/estrongs/android/pop/view/utils/a$a;->b:Ljava/lang/String;

    invoke-static {v4}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, " and "

    .line 12
    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "extension="

    .line 13
    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p0, Lcom/estrongs/android/pop/view/utils/a$a;->c:Ljava/lang/String;

    invoke-static {v4}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 14
    iget-object v4, p0, Lcom/estrongs/android/pop/view/utils/a$a;->e:Lcom/estrongs/android/pop/view/utils/a;

    invoke-static {v4}, Lcom/estrongs/android/pop/view/utils/a;->a(Lcom/estrongs/android/pop/view/utils/a;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v4

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v3, v2, v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v0

    if-gtz v0, :cond_0

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/a$a;->e:Lcom/estrongs/android/pop/view/utils/a;

    invoke-static {v0}, Lcom/estrongs/android/pop/view/utils/a;->a(Lcom/estrongs/android/pop/view/utils/a;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    invoke-virtual {v0, v3, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    .line 16
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/a$a;->e:Lcom/estrongs/android/pop/view/utils/a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/utils/a;->a()V

    return-void
.end method
